From: Drew Parsons Date: Sat, 17 Oct 2020 05:43:21 +0000 (+0800) Subject: Import pygalmesh_0.9.1-2.debian.tar.xz X-Git-Tag: archive/raspbian/0.10.6-5+rpi1~1^2^2~2^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5b9895309675a5dd6d682107e2e6976822691ac7;p=pygalmesh.git Import pygalmesh_0.9.1-2.debian.tar.xz [dgit import tarball pygalmesh 0.9.1-2 pygalmesh_0.9.1-2.debian.tar.xz] --- 5b9895309675a5dd6d682107e2e6976822691ac7 diff --git a/changelog b/changelog new file mode 100644 index 0000000..1669274 --- /dev/null +++ b/changelog @@ -0,0 +1,171 @@ +pygalmesh (0.9.1-2) unstable; urgency=medium + + * debian patch test_relax_tolerance.patch relaxes test tolerances + (needed for i386 to pass tests) + + -- Drew Parsons Sat, 17 Oct 2020 13:43:21 +0800 + +pygalmesh (0.9.1-1) unstable; urgency=medium + + * New upstream release. + * update versioned Build-Depends: python3-pybind11 (>= 2.5), + python3-setuptools (>= 42) + + -- Drew Parsons Thu, 15 Oct 2020 21:05:40 +0800 + +pygalmesh (0.7.2-1) unstable; urgency=medium + + * New upstream release. + * generate manpages directly from binary commands using help2man + rather than markdown and pandoc. + + -- Drew Parsons Sat, 26 Sep 2020 17:33:24 +0800 + +pygalmesh (0.7.1-1) unstable; urgency=medium + + * New upstream release. + - changes copyright licence to GPL-3 + * debhelper compatibility level 13 + + -- Drew Parsons Thu, 10 Sep 2020 23:35:09 +0800 + +pygalmesh (0.6.6-1) unstable; urgency=medium + + * New upstream release. + - drop debian patch relax_test_tolerance.patch. inr test tolerance + raised upstream. + + -- Drew Parsons Tue, 12 May 2020 19:28:09 +0800 + +pygalmesh (0.6.2-1) unstable; urgency=medium + + * New upstream release. + + -- Drew Parsons Thu, 16 Apr 2020 16:34:22 +0800 + +pygalmesh (0.5.2-1) unstable; urgency=medium + + * New upstream release. + - versioned Build-Depends: python3-meshio (>= 4) + * Update debian patch relax_test_tolerance.patch to relax upstream + tolerance only for ref[5]. Closes: #951864. + + -- Drew Parsons Mon, 24 Feb 2020 11:54:01 +0800 + +pygalmesh (0.5.0-4) unstable; urgency=medium + + * It is possible to build pygalmesh using cmake, but normally it + should be built using setup.py (distutils). Disambiguate between + the two build systems by setting PYBUILD_SYSTEM=distutils. + Closes: #946233. + * Standards-Version: 4.5.0 + + -- Drew Parsons Tue, 18 Feb 2020 15:50:47 +0800 + +pygalmesh (0.5.0-3) unstable; urgency=medium + + * more tolerance relaxing in relax_test_tolerance.patch. + Closes: #947058. + + -- Drew Parsons Tue, 31 Dec 2019 09:19:05 +1100 + +pygalmesh (0.5.0-2) unstable; urgency=medium + + * debian patch relax_test_tolerance.patch relaxes tolerance in + test_inr.py to allow successful tests on arm64. Closes: #947058. + * Standards-Version: 4.4.1 + + -- Drew Parsons Sat, 28 Dec 2019 10:54:34 +1100 + +pygalmesh (0.5.0-1) unstable; urgency=medium + + * New upstream release. + - fixes build against CGAL 5. Thanks Joachim Reichel for a patch. + Closes: #946234. + + -- Drew Parsons Sat, 07 Dec 2019 14:07:47 +0800 + +pygalmesh (0.4.0-1) unstable; urgency=medium + + * set debian/watch to track upstream git tags, + needed to pull in git lfs objects (mesh files) + * New upstream release. + + -- Drew Parsons Mon, 19 Aug 2019 00:42:35 +0800 + +pygalmesh (0.3.6-2) unstable; urgency=medium + + * debian/clean: delete pygalmesh-from-inr.1 and + pygalmesh-volume-from-surface.1, generated in + override_dh_auto_build. Thanks Joachim Reichel. + Closes: #933848, #933986. + + -- Drew Parsons Tue, 06 Aug 2019 16:53:03 +0800 + +pygalmesh (0.3.6-1) unstable; urgency=medium + + * New upstream release. + * Standards-Version: 4.4.0 + + -- Drew Parsons Thu, 11 Jul 2019 10:25:00 +0800 + +pygalmesh (0.3.5-1) unstable; urgency=medium + + * New upstream release. + - provides utility scripts pygalmesh-from-inr and + pygalmesh-volume-from-surface + + -- Drew Parsons Sun, 07 Jul 2019 19:33:56 +0800 + +pygalmesh (0.3.3-2) experimental; urgency=medium + + * debian/tests/control: Depends: python3-requests. + + -- Drew Parsons Fri, 17 May 2019 15:11:08 +0800 + +pygalmesh (0.3.3-1) experimental; urgency=medium + + * New upstream release. + + -- Drew Parsons Sat, 11 May 2019 16:12:20 +0800 + +pygalmesh (0.3.1-3) experimental; urgency=medium + + * skip dh_dwz and don't build dbgsym packages on arches where debug + symbols have been switched off (-g0) + + -- Drew Parsons Sat, 04 May 2019 00:33:39 +0800 + +pygalmesh (0.3.1-2) experimental; urgency=medium + + * disable debugging symbols (replace -g flag with -g0 in CFLAGS) + on low memory (32 bit) arches: + armhf i386 mips mipsel hppa hurd-i386 kfreebsd-i386 powerpcspe x32 + Closes: #928140. + + -- Drew Parsons Fri, 03 May 2019 22:40:41 +0800 + +pygalmesh (0.3.1-1) experimental; urgency=medium + + * New upstream release + - supports periodic meshes + - Build-Depends: python3-meshio + * Standards-Version: 4.3.0 + * debhelper compatibility level 12 + + -- Drew Parsons Wed, 24 Apr 2019 22:41:19 +0800 + +pygalmesh (0.2.6-1) unstable; urgency=medium + + * New upstream release. + - fixes meshio API used in pygalmesh tests + * add debian/tests (autopkgtest) to run pytest-3 + + -- Drew Parsons Wed, 14 Nov 2018 23:10:51 +0800 + +pygalmesh (0.2.5-1) unstable; urgency=medium + + * Initial release (Closes: #910278) + - package Python 3 module only (Python 2 is deprecated) + + -- Drew Parsons Mon, 08 Oct 2018 00:49:13 +0800 diff --git a/clean b/clean new file mode 100644 index 0000000..3da9b05 --- /dev/null +++ b/clean @@ -0,0 +1,2 @@ +pygalmesh-from-inr.1 +pygalmesh-volume-from-surface.1 diff --git a/control b/control new file mode 100644 index 0000000..45bfcd0 --- /dev/null +++ b/control @@ -0,0 +1,52 @@ +Source: pygalmesh +Section: python +Priority: optional +Maintainer: Debian Science Maintainers +Uploaders: Drew Parsons +Build-Depends: debhelper-compat (= 13), + dh-python, python3-all-dev, python3-setuptools (>= 42), + libcgal-dev, + libeigen3-dev, + python3-meshio (>= 4), + python3-pybind11 (>= 2.5) +Standards-Version: 4.5.0 +Homepage: https://github.com/nschloe/pygalmesh +Vcs-Browser: https://salsa.debian.org/science-team/pygalmesh +Vcs-Git: https://salsa.debian.org/science-team/pygalmesh.git + +Package: python3-pygalmesh +Architecture: any +Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends} +Suggests: python-pygalmesh-doc +Description: Python 3 frontend to CGAL's 3D mesh generators + pygalmesh makes it easy to create high-quality 3D volume and surface + meshes. + . + CGAL offers two different approaches for mesh generation: + - Meshes defined implicitly by level sets of functions. + - Meshes defined by a set of bounding planes. + . + pygalmesh provides a front-end to the first approach, which has the + following advantages and disadvantages: + - All boundary points are guaranteed to be in the level set within + any specified residual. This results in smooth curved surfaces. + - Sharp intersections of subdomains (e.g., in unions or + differences of sets) need to be specified manually (via feature edges, + see below), which can be tedious. + . + On the other hand, the bounding-plane approach (realized by mshr), + has the following properties: + - Smooth, curved domains are approximated by a set of bounding + planes, resulting in more of less visible edges. + - Intersections of domains can be computed automatically, so + domain unions etc. have sharp edges where they belong. + . + pygalmesh and mshr are therefore complementary. + . + pygalmesh also interfaces CGAL's 3D periodic mesh generation. + . + This package installs the pygalmesh module for Python 3. + . + It also provides the utility scripts pygalmesh-from-inr and + pygalmesh-volume-from-surface for generating volume meshes from + INR or surface meshes. diff --git a/copyright b/copyright new file mode 100644 index 0000000..7f81d4a --- /dev/null +++ b/copyright @@ -0,0 +1,12 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pygalmesh +Source: https://github.com/nschloe/pygalmesh + +Files: * +Copyright: 2016-2020 Nico Schlömer +License: GPL-3 + This software is released under the terms of the GNU General Public + Licence, Version 3. + . + On a Debian system, the full text of the GPL can be found at + /usr/share/common-licenses/GPL-3 diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..29f1cb6 --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +test_relax_tolerance.patch diff --git a/patches/test_relax_tolerance.patch b/patches/test_relax_tolerance.patch new file mode 100644 index 0000000..d7e4842 --- /dev/null +++ b/patches/test_relax_tolerance.patch @@ -0,0 +1,26 @@ +Index: pygalmesh/test/test_volume_mesh.py +=================================================================== +--- pygalmesh.orig/test/test_volume_mesh.py 2020-10-15 18:54:16.117466694 +0800 ++++ pygalmesh/test/test_volume_mesh.py 2020-10-17 13:18:06.588548310 +0800 +@@ -476,7 +476,7 @@ + verbose=False, + ) + +- tol = 1.0e-3 ++ tol = 1.1e-3 + assert abs(max(mesh.points[:, 0]) - 0.5) < tol + assert abs(min(mesh.points[:, 0]) + 0.5) < tol + assert abs(max(mesh.points[:, 1]) - 0.8) < tol +Index: pygalmesh/test/test_inr.py +=================================================================== +--- pygalmesh.orig/test/test_inr.py 2020-10-15 18:54:16.117466694 +0800 ++++ pygalmesh/test/test_inr.py 2020-10-17 13:19:06.672108537 +0800 +@@ -32,7 +32,7 @@ + assert abs(max(mesh.points[:, 1]) - ref[2]) < tol * ref[2] + assert abs(min(mesh.points[:, 1]) - ref[3]) < tol * ref[3] + assert abs(max(mesh.points[:, 2]) - ref[4]) < tol * ref[4] +- tol = 3.0e-2 ++ tol = 5.0e-2 + assert abs(min(mesh.points[:, 2]) - ref[5]) < tol * ref[5] + + vol = sum(helpers.compute_volumes(mesh.points, mesh.get_cells_type("tetra"))) diff --git a/pygalmesh-from-inr.1 b/pygalmesh-from-inr.1 new file mode 100644 index 0000000..e860a4a --- /dev/null +++ b/pygalmesh-from-inr.1 @@ -0,0 +1,64 @@ +.\" This file was adapted from help2man 1.47.16 output. +.TH pygalmesh\-from\-inr "1" "September 2020" "PYGALMESH" "PYGALMESH" +.SH NAME +pygalmesh\-from\-inr \- manual page for pygalmesh 0.7.1 [Python 3.8.6, CGAL 5.1] +.SH DESCRIPTION +usage: pygalmesh\-from\-inr [\-h] [\-\-lloyd LLOYD] [\-\-odt] [\-\-perturb] [\-\-exude] +.TP +[\-\-edge\-size EDGE_SIZE] [\-\-facet\-angle FACET_ANGLE] +[\-\-facet\-size FACET_SIZE] +[\-\-facet\-distance FACET_DISTANCE] +[\-\-cell\-radius\-edge\-ratio CELL_RADIUS_EDGE_RATIO] +[\-\-cell\-size CELL_SIZE] [\-\-quiet] [\-\-version] +infile outfile +.PP +Generate volume mesh from INR voxel file. +.SS "positional arguments:" +.TP +infile +input INR file +.TP +outfile +output mesh file +.SS "optional arguments:" +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message and exit +.TP +\fB\-\-lloyd\fR LLOYD, \fB\-l\fR LLOYD +Lloyd smoothing (default: false) +.TP +\fB\-\-odt\fR, \fB\-o\fR +ODT smoothing (default: false) +.TP +\fB\-\-perturb\fR, \fB\-p\fR +perturb (default: false) +.TP +\fB\-\-exude\fR, \fB\-x\fR +exude (default: false) +.TP +\fB\-\-edge\-size\fR EDGE_SIZE, \fB\-e\fR EDGE_SIZE +edge size (default: 0.0) +.TP +\fB\-\-facet\-angle\fR FACET_ANGLE, \fB\-a\fR FACET_ANGLE +facet angle (default: 0.0) +.TP +\fB\-\-facet\-size\fR FACET_SIZE, \fB\-s\fR FACET_SIZE +facet size (default: 0.0) +.TP +\fB\-\-facet\-distance\fR FACET_DISTANCE, \fB\-d\fR FACET_DISTANCE +facet distance (default: 0.0) +.TP +\fB\-\-cell\-radius\-edge\-ratio\fR CELL_RADIUS_EDGE_RATIO, \fB\-r\fR CELL_RADIUS_EDGE_RATIO +cell radius/edge ratio (default: 0.0) +.TP +\fB\-\-cell\-size\fR CELL_SIZE, \fB\-c\fR CELL_SIZE +cell size (default: 0.0) +.TP +\fB\-\-quiet\fR, \fB\-q\fR +quiet mode (default: False) +.TP +\fB\-\-version\fR, \fB\-v\fR +show program's version number and exit +.SH COPYRIGHT +Copyright \(co 2016\-2020, Nico Schlömer diff --git a/pygalmesh-remesh-surface.1 b/pygalmesh-remesh-surface.1 new file mode 100644 index 0000000..3fdce60 --- /dev/null +++ b/pygalmesh-remesh-surface.1 @@ -0,0 +1,45 @@ +.\" This file was adapted from help2man 1.47.16 output. +.TH pygalmesh\-remesh\-surface "1" "September 2020" "PYGALMESH" "PYGALMESH" +.SH NAME +pygalmesh\-remesh\-surface \- manual page for pygalmesh 0.7.1 [Python 3.8.6, CGAL 5.1] +.SH DESCRIPTION +usage: pygalmesh\-remesh\-surface [\-h] [\-\-edge\-size EDGE_SIZE] +.TP +[\-\-facet\-angle FACET_ANGLE] +[\-\-facet\-size FACET_SIZE] +[\-\-facet\-distance FACET_DISTANCE] [\-\-quiet] +[\-\-version] +infile outfile +.PP +Remesh surface mesh. +.SS "positional arguments:" +.TP +infile +input mesh file +.TP +outfile +output mesh file +.SS "optional arguments:" +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message and exit +.TP +\fB\-\-edge\-size\fR EDGE_SIZE, \fB\-e\fR EDGE_SIZE +edge size (default: 0.0) +.TP +\fB\-\-facet\-angle\fR FACET_ANGLE, \fB\-a\fR FACET_ANGLE +facet angle (default: 0.0) +.TP +\fB\-\-facet\-size\fR FACET_SIZE, \fB\-s\fR FACET_SIZE +facet size (default: 0.0) +.TP +\fB\-\-facet\-distance\fR FACET_DISTANCE, \fB\-d\fR FACET_DISTANCE +facet distance (default: 0.0) +.TP +\fB\-\-quiet\fR, \fB\-q\fR +quiet mode (default: False) +.TP +\fB\-\-version\fR, \fB\-v\fR +show program's version number and exit +.SH COPYRIGHT +Copyright \(co 2016\-2020, Nico Schl??mer diff --git a/pygalmesh-volume-from-surface.1 b/pygalmesh-volume-from-surface.1 new file mode 100644 index 0000000..c866bf0 --- /dev/null +++ b/pygalmesh-volume-from-surface.1 @@ -0,0 +1,69 @@ +.\" This file was adapted from help2man 1.47.16 output. +.TH pygalmesh\-volume\-from\-surface "1" "September 2020" "PYGALMESH" "PYGALMESH" +.SH NAME +pygalmesh\-volume\-from\-surface \- manual page for pygalmesh 0.7.1 [Python 3.8.6, CGAL 5.1] +.SH DESCRIPTION +usage: pygalmesh\-volume\-from\-surface [\-h] [\-\-lloyd LLOYD] [\-\-odt] [\-\-perturb] +.TP +[\-\-exude] [\-\-edge\-size EDGE_SIZE] +[\-\-facet\-angle FACET_ANGLE] +[\-\-facet\-size FACET_SIZE] +[\-\-facet\-distance FACET_DISTANCE] +[\-\-cell\-radius\-edge\-ratio CELL_RADIUS_EDGE_RATIO] +[\-\-reorient] [\-\-cell\-size CELL_SIZE] +[\-\-quiet] [\-\-version] +infile outfile +.PP +Generate volume mesh from surface mesh. +.SS "positional arguments:" +.TP +infile +input mesh file +.TP +outfile +output mesh file +.SS "optional arguments:" +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message and exit +.TP +\fB\-\-lloyd\fR LLOYD, \fB\-l\fR LLOYD +Lloyd smoothing (default: false) +.TP +\fB\-\-odt\fR, \fB\-o\fR +ODT smoothing (default: false) +.TP +\fB\-\-perturb\fR, \fB\-p\fR +perturb (default: false) +.TP +\fB\-\-exude\fR, \fB\-x\fR +exude (default: false) +.TP +\fB\-\-edge\-size\fR EDGE_SIZE, \fB\-e\fR EDGE_SIZE +edge size (default: 0.0) +.TP +\fB\-\-facet\-angle\fR FACET_ANGLE, \fB\-a\fR FACET_ANGLE +facet angle (default: 0.0) +.TP +\fB\-\-facet\-size\fR FACET_SIZE, \fB\-s\fR FACET_SIZE +facet size (default: 0.0) +.TP +\fB\-\-facet\-distance\fR FACET_DISTANCE, \fB\-d\fR FACET_DISTANCE +facet distance (default: 0.0) +.TP +\fB\-\-cell\-radius\-edge\-ratio\fR CELL_RADIUS_EDGE_RATIO, \fB\-r\fR CELL_RADIUS_EDGE_RATIO +cell radius/edge ratio (default: 0.0) +.TP +\fB\-\-reorient\fR, \fB\-t\fR +automatically fix face orientation (default: False) +.TP +\fB\-\-cell\-size\fR CELL_SIZE, \fB\-c\fR CELL_SIZE +cell size (default: 0.0) +.TP +\fB\-\-quiet\fR, \fB\-q\fR +quiet mode (default: False) +.TP +\fB\-\-version\fR, \fB\-v\fR +show program's version number and exit +.SH COPYRIGHT +Copyright \(co 2016\-2020, Nico Schlömer diff --git a/python3-pygalmesh.manpages b/python3-pygalmesh.manpages new file mode 100644 index 0000000..90a35e5 --- /dev/null +++ b/python3-pygalmesh.manpages @@ -0,0 +1,3 @@ +debian/pygalmesh-from-inr.1 +debian/pygalmesh-volume-from-surface.1 +debian/pygalmesh-remesh-surface.1 \ No newline at end of file diff --git a/rules b/rules new file mode 100755 index 0000000..9400c5e --- /dev/null +++ b/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +export PYBUILD_NAME=pygalmesh + +export PYBUILD_SYSTEM=distutils + +DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +# some arches (mostly 32 bit) don't provide enough memory to build with debug symbols +ARCH_NO_DEBUG_SYMBOLS := armhf i386 mips mipsel hppa hurd-i386 kfreebsd-i386 powerpcspe x32 +ifneq ($(findstring $(DEB_BUILD_ARCH),$(ARCH_NO_DEBUG_SYMBOLS)),) +# disable debugging symbols (replace -g with -g0 in build flags) on weak arches + CFLAGS := $(shell dpkg-buildflags --get CFLAGS | sed 's/-g /-g0 /' ) +endif + +%: + dh $@ --with python3 --buildsystem=pybuild + +# debug symbols (-g) have been switched off (-g0) in CFLAGS for some arches, so no point building dbgsym packages +override_dh_strip: + case " $(ARCH_NO_DEBUG_SYMBOLS) " in \ + *\ $(DEB_HOST_ARCH)\ *) dh_strip --no-automatic-dbgsym;; \ + *) dh_strip;; \ + esac + +override_dh_dwz: + case " $(ARCH_NO_DEBUG_SYMBOLS) " in \ + *\ $(DEB_HOST_ARCH)\ *) echo "skipping dh_dwz since debug symbols (-g) have been switched off (-g0) for $(DEB_HOST_ARCH)";; \ + *) dh_dwz;; \ + esac diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/source/options b/source/options new file mode 100644 index 0000000..cb61fa5 --- /dev/null +++ b/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" diff --git a/tests/control b/tests/control new file mode 100644 index 0000000..deb1105 --- /dev/null +++ b/tests/control @@ -0,0 +1,4 @@ +Test-Command: pytest-3 +Depends: @, @builddeps@, + python3-pytest, + python3-requests diff --git a/watch b/watch new file mode 100644 index 0000000..9f582da --- /dev/null +++ b/watch @@ -0,0 +1,4 @@ +version=4 +opts="mode=git, gitmode=full, pgpmode=none" \ +https://github.com/nschloe/pygalmesh.git \ +refs/tags/v([\d\.]+) debian uupdate